import { getBlogList } from './data';
import './style.css';
import '@/images/yao.jpg'
console.log('Webpack入门示例');
const blogList = getBlogList();
blogList.forEach(item => {
    const div = document.createElement('div');
    div.innerHTML = `${item.title} - ${item.author}`
    document.body.appendChild(div);
})
const img = document.createElement('img');
img.src = require('./images/yao.jpg');
document.body.appendChild(img);
// 设置图片大小
img.style.width = '200px';
const h1 = document.createElement('h1');
h1.innerHTML = 'Hello Webpack';
document.body.appendChild(h1);
